#parse("/regist/top.htm")
<script type="text/javascript" src="/js/checkLegal.js"></script>
<script>
function doSave()
{
	if(doCheck()){
		if(EditForm.cid.value!=""){
			document.getElementById("EditForm").parameter.value="saveSetting";
		}
		document.getElementById("EditForm").submit();
	}
}

function doCheck()
{
	if(document.getElementById("EditForm").title.value==""){
		alert("博客标题不能为空！");
		document.getElementById("EditForm").title.focus();
		return false;
	}
	//域名的合法性检查
	var key=document.getElementById("EditForm").domain.value;
	if(key==""||!isDomain(key)){
		alert("域名输入有误");
		document.getElementById("EditForm").domain.focus();
		return false;
	}
	//对字数做限制
	return true;
}

function doSave(){
	if(doCheck()){
		if(EditForm.cid.value!=""){
			document.getElementById("EditForm").parameter.value="saveSetting";
		}
		document.getElementById("EditForm").submit();
	}
}

function doCheck()
{
if(document.getElementById("EditForm").title.value=="")
{
alert("博客标题不能为空！");
document.getElementById("EditForm").title.focus();
return false;
}
//域名的合法性检查
var key=document.getElementById("EditForm").domain.value;
if(key==""||!isDomain(key))
{
alert("域名输入有误");
document.getElementById("EditForm").domain.focus();
return false;
}
return true;
}

</script>

<div class="clearfix"></div>
<div id="content">
<!--blogleft-->
  <div class="login border1">
    <div class="blogfunction_bar">
      <h2>用户注册</h2>
    <div class="bloglogin">
    
<br />

<form name="EditForm" method="post" action="/blogLogin.do">
<input type="hidden" name="parameter" value="saveRegister">  
<input type="hidden" name="cid"   value="$!cid">	
<input name="email" type="hidden" id="email" value="$!email">
<input type="hidden" name="username" value="$!username">

<table width="600px" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td colspan="3" align="center" style="font-size:14px; font-weight:bold;">博客相关信息(<font style="font-weight:bold; color:#F00">*为必填项</font>)</td>
    </tr>
  <tr>
    <td width="100px" align="right" class="leftw">昵称</td>
    <td width="233px" align="left"><input  name="nickname" type="text" id="nickname" value="$!qq"class="t1" style="width:98%"/></td>
    <td width="267px" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="leftw">博客名称</td>
    <td align="left"><input name="title" type="text" id="title" value="$!qq的博客" class="t1" style="width:98%"/></td>
    <td align="left"><font style="color:#F00">*</font></td>
  </tr>
  <tr>
    <td align="right" class="leftw">博客子名称</td>
    <td align="left"><input name="subtitle" type="text" id="subtitle" value="$!subtitle"  class="t1" style="width:98%"/></td>
    <td  align="left">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="leftw">博客域名</td>
    <td align="left"><input  name="domain" type="text" id="domain" value="$!username" class="t1" style="width:98%"/></td>
    <td align="left"><font style="color:#F00">*</font>(字母开头，允许字母数字，长为5-16)</td>
  </tr>
 <tr>
    <td align="right" class="leftw">关于我</td>
    <td align="left"><textarea name="intro" rows="5" id="intro" style="width:100%"></textarea></td>
    <td  align="left">&nbsp;</td>
  </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td><input type="button" name="Submit" value="提交" onclick="doSave();" />
      <input  type="reset" name="Submit2" value="重置" /></td>
    <td>&nbsp;</td>
  </tr>
  
</table>
</form>
    </div>                   
    </div>
  </div>
  <!--blogleft end-->
</div>
<div class="clearfix"></div>
#parse("/regist/bottom.htm")
</body>
</html>

#if($msg)
<script>
alert('$!msg');
var ms='$!msg';
if(ms.indexOf('请继续设置博客信息')==-1){
window.location.href="/index.htm";
}
</script>
#end